home *** CD-ROM | disk | FTP | other *** search
-
-
-
- IXTIMEZONE(8) IXTIMEZONE(8)
-
-
- NNAAMMEE
- ixtimezone - allows Unix timezone-handling to be used with
- ixemul.library
-
- SSYYNNOOPPSSIISS
- iixxttiimmeezzoonnee option
-
- DDEESSCCRRIIPPTTIIOONN
- _I_x_t_i_m_e_z_o_n_e uses the TTZZ environment variable to determine
- the offset in seconds between Universal Coordinated Time
- (aka Greenwich Mean Time) and the local timezone. This
- offset is stored in a field in the ixemul library base.
- The offset is also written to the environment variable
- IIXXGGMMTTOOFFFFSSEETT. The _i_x_e_m_u_l_._l_i_b_r_a_r_y is now able to correctly
- determine the local time and GMT.
-
- The TTZZ environment variable should contain the name of one
- of the files in the //eettcc//zzoonneeiinnffoo directory. For example,
- I live in the Netherlands, so my TTZZ is set to EEuurrooppee//AAmmss--
- tteerrddaamm. The TTZZ environment variable _m_u_s_t be set before
- using _i_x_t_i_m_e_z_o_n_e, otherwise _i_x_t_i_m_e_z_o_n_e wouldn't know what
- the local timezone is, and therefore it wouldn't be able
- to compute the offset from GMT.
-
- You should put _i_x_t_i_m_e_z_o_n_e in your ssttaarrttuupp--sseeqquueennccee to
- ensure that it is called every time you start your com-
- puter. After _i_x_t_i_m_e_z_o_n_e has been executed, you can set TTZZ
- to whatever value you want. For example, to see what time
- it is in Japan, set TTZZ to JJaappaann and type _i_x_t_i_m_e_z_o_n_e _-_t_e_s_t.
- But don't use any other option, as the other options set
- the GMT offset based on the current TTZZ value, which is
- JJaappaann!
-
- Note that you need to call this tool at least twice a
- year, when Daylight Saving Time comes in effect and when
- it ends.
-
- OOPPTTIIOONNSS
- --tteesstt Print the local time and GMT (according to
- _i_x_e_m_u_l_._l_i_b_r_a_r_y) to standard output. Use this to
- test the current settings. It doesn't affect any-
- thing else.
-
- --ggeett--ooffffsseett
- Calculate the difference between local time and GMT
- in seconds. The resulting offset is stored in the
- library base of _i_x_e_m_u_l_._l_i_b_r_a_r_y and is also written
- to the global environment variable IIXXGGMMTTOOFFFFSSEETT.
-
- If the IIXXGGMMTTOOFFFFSSEETT environment variable didn't
- exist or the offset stored in the original environ-
- ment variable differed from the new offset (which
- happens when Daylight Saving Time starts or ends),
- then a copy of IIXXGGMMTTOOFFFFSSEETT is written to the
-
-
-
- 1
-
-
-
-
-
- IXTIMEZONE(8) IXTIMEZONE(8)
-
-
- EENNVVAARRCC:: directory.
-
- Since _i_x_e_m_u_l_._l_i_b_r_a_r_y reads the IIXXGGMMTTOOFFFFSSEETT environ-
- ment variable just after it is loaded into memory,
- it is sufficient to use _i_x_t_i_m_e_z_o_n_e only when Day-
- light Saving Time starts or ends. Provided, of
- course, that the contents of the EENNVVAARRCC:: directory
- is copied to EENNVV:: before _i_x_e_m_u_l_._l_i_b_r_a_r_y is loaded.
-
- --cchheecckk--ddsstt
- This option does the same as --ggeett--ooffffsseett, but it
- also detects if Daylight Saving Time has started or
- ended. If so, it automatically sets the Amiga clock
- to the correct time. So you no longer need to
- change the time manually twice a year.
-
- --ppaattcchh--rreessoouurrccee
- This option does the same as --ggeett--ooffffsseett, but it
- also patches the _b_a_t_t_c_l_o_c_k_._r_e_s_o_u_r_c_e. This is most
- useful if you also run the Unix operating system on
- your Amiga (NetBSD or Linux, for example). Unix
- requires that the clock is set to Greenwich Mean
- Time, while the Amiga requires that the clock is
- set to local time. By patching the
- _b_a_t_t_c_l_o_c_k_._r_e_s_o_u_r_c_e one can set the Amiga clock,
- which is managed by the _b_a_t_t_c_l_o_c_k_._r_e_s_o_u_r_c_e, to GMT
- time. The patch ensures that whenever the Amiga
- wants to obtain the time, the GMT time is converted
- into local time. There is also no longer any need
- to change the Amiga clock when Daylight Saving Time
- starts or ends, since the battery clock is set to
- GMT.
-
- _i_x_t_i_m_e_z_o_n_e detects if you try to patch the
- _b_a_t_t_c_l_o_c_k_._r_e_s_o_u_r_c_e a second time. It won't patch
- the resource again, but it will check if the cur-
- rent GMT offset is still the same as when the patch
- was originally installed. If it has changed, the
- _b_a_t_t_c_l_o_c_k_._r_e_s_o_u_r_c_e offset will also be changed.
-
- --rreemmoovvee--ppaattcchh
- Removes the _b_a_t_t_c_l_o_c_k_._r_e_s_o_u_r_c_e patch. It checks if
- the patch was really installed before removing it.
- This option doesn't do anything else.
-
- FFIILLEE
- /etc/zoneinfo standard directory used for created files
-
- HHIISSTTOORRYY
- The original idea for the --ppaattcchh--rreessoouurrccee option came from
- the _u_n_i_x_c_l_o_c_k utility written by Geert Uytterhoeven.
- _u_n_i_x_c_l_o_c_k is available on Aminet.
-
-
-
-
-
- 2
-
-
-
-
-
- IXTIMEZONE(8) IXTIMEZONE(8)
-
-
- SSEEEE AALLSSOO
- The time functions, the timezone databases and the _z_i_c(8)
- utility for compiling the timezone files in the //eettcc//zzoonnee--
- iinnffoo directory are available from _e_l_s_i_e_._n_c_i_._n_i_h_._g_o_v in the
- //ppuubb directory.
-
- AAUUTTHHOORR
- Hans Verkuil (_h_a_n_s_@_w_y_s_t_._h_o_b_b_y_._n_l)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 3
-
-
-